function caseOption (file)
% Option for case$x.m
global nlp prob

switch(file)
case 'case9.m',
    prob.segs{1} = [-1; 1];
    prob.nodes{1} = [19];
    prob.refineMode = 'manual'; 
    prob.uGmax = 0.2; 
    %prob.p_ini = 0.3;
    prob.uG0 = [0.0; 0.1; 0.1];
    prob.uL0 = [0; 0; 0];
    nlp.maxiter = 130;
    nlp.tol = 1.e-9;
    nlp.method = 'IPOPT';
    nlp.print_level = 5;
    nlp.jacobian = 'analytic' ;  % 'analytic' ; %  'auto'
    nlp.hessian  = 'analytic' ;  % 'analytic' 'BFGS';   
    
case 'case30.m',
    prob.segs{1} = [-1; 1];
    prob.nodes{1} = 21;
    prob.refineMode = 'manual';
    prob.uGmax = 0.7; %prob.p_ini = 0.2;
    prob.uG0 = 0.1 *ones(6,1);
    prob.uL0 = 0 *ones(20,1);
    nlp.maxiter = 400;
    nlp.tol = 1.e-6;
    nlp.method = 'KNITRO';
    nlp.print_level = 5;
    nlp.jacobian = 'analytic' ;  % 'analytic' ; %  'auto'
    nlp.hessian  = 'BFGS' ;  % 'analytic' 'BFGS'; 

case 'case39.m',
    prob.segs{1} = [-1; 1];
    prob.nodes{1} = 19;
    prob.refineMode = 'manual';
    prob.uGmax = 0.9; prob.p_ini = 0.2;
    nlp.maxiter = 300;
    nlp.tol = 1.e-7;
    nlp.method = 'IPOPT';
    nlp.print_level = 5;
    nlp.jacobian = 'analytic' ;  % 'analytic' ; %  'auto'
    nlp.hessian  = 'analytic' ;  % 'analytic' 'BFGS'; 
    
case 'case118.m', % uG:53 uL: 99
    prob.segs{1} = [-1; 1];
    prob.nodes{1} = 15;
    prob.refineMode = 'manual';
    prob.uGmax = 0.9; prob.p_ini = 0.3;
    %prob.uG0 = 0.1*ones(53,1);
    %prob.uL0 = 0 * ones(99,1);
    nlp.maxiter = 100;
    nlp.tol = 1.e-1;
    nlp.method = 'IPOPT';
    nlp.print_level = 5;
    nlp.jacobian = 'analytic' ;  % 'analytic' ; %  'auto'
    nlp.hessian  = 'analytic' ;  % 'analytic' 'BFGS'; 
    
case 'case162.m',
    prob.segs{1} = [-1; 1];
    prob.nodes{1} = 15;
    prob.refineMode = 'manual';
    prob.uGmax = 0.8; prob.p_ini = 0.4;
    nlp.maxiter = 200;
    nlp.tol = 1.e-5;
    nlp.method = 'IPOPT';
    nlp.print_level = 5;
    nlp.jacobian = 'analytic' ;  % 'analytic' ; %  'auto'
    nlp.hessian  = 'analytic' ;  % 'analytic' 'BFGS'; 
    
case 'case300.m', % uG:67 uL:191
    prob.segs{1} = [-1;1];
    prob.nodes{1} = [15];
    prob.refineMode = 'manual';
    prob.uGmax = 0.99; prob.p_ini = 0.05;
    Gguess = 0*ones(69,1); Gguess([14;62]) = [0.5;0.31];
    Lguess = 0*ones(191,1); %Lguess([1;97;157])=[0.8590; 0.6264; 1.0000];
    %prob.uG0 = Gguess;  prob.uL0 = Lguess;
    nlp.maxiter = 150;
    nlp.tol = 4;
    nlp.method = 'IPOPT';
    nlp.print_level = 5;
    nlp.jacobian = 'analytic' ;  % 'analytic' ; %  'auto'
    nlp.hessian  = 'analytic' ;  % 'analytic' 'BFGS'; 
    
case 'case678.m',
    prob.segs{1} = [-1;1];
    prob.nodes{1} = [15];
    prob.refineMode = 'manual';
    prob.uGmax = 0.9; prob.p_ini = 0.0;
    nlp.maxiter = 70;
    nlp.tol = 1.e-4;
    nlp.method = 'IPOPT';
    nlp.print_level = 5;
    nlp.jacobian = 'analytic' ;  % 'analytic' ; %  'auto'
    nlp.hessian  = 'analytic' ;  % 'analytic' 'BFGS'; 
    
case 'case2052.m',
    prob.segs{1} = [-1; 1];
    prob.nodes{1} = 14;
    prob.refineMode = 'manual';
    prob.uGmax = 0.9; prob.p_ini = 0.1;
    nlp.maxiter = 100;
    nlp.tol = 1.e-1;
    nlp.method = 'IPOPT';
    nlp.print_level = 5;
    nlp.jacobian = 'analytic' ;  % 'analytic' ; %  'auto'
    nlp.hessian  = 'BFGS' ;  % 'analytic' 'BFGS'; 

case 'case2383.m',
    prob.segs{1} = [-1; 1];
    prob.nodes{1} = 14;
    prob.refineMode = 'manual';
    prob.uGmax = 0.9; prob.p_ini = 0.0;
    nlp.maxiter = 50;
    nlp.tol = 1.e-1;
    nlp.method = 'IPOPT';
    nlp.print_level = 5;
    nlp.jacobian = 'analytic' ;  % 'analytic' ; %  'auto'
    nlp.hessian  = 'BFGS' ;  % 'analytic' 'BFGS'; 
end

end